package com.learning.neo4j.baseapi.spring;

import com.learning.neo4j.baseapi.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: MovieRespon
 * Description:
 * Date: 2019/3/28 17:57 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class PersonService {

    @Autowired
    private PersonRepository personRepository;


    public Person findByNameIs(String name) {
        return personRepository.findByNameIs(name);
    }
}
